<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>煤炭管理系统</title>
    <link rel="stylesheet" href="/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/lib/layui/css/layui-theme-custom.css">
    <link rel="stylesheet" href="/static/css/member.css">
    <style>
        tr strong{
            color:#c0392b;
        }
    </style>
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <#include "/base/main-header.ftl">

    <#include "/base/main-left.ftl">
    <div class="layui-body">
        <!-- 内容主体区域  -->

        <#include "./template/Purchasing-info.ftl">
        <#include "./template/coal-quality.ftl">

        <div style="display: flex; justify-content: center;margin-bottom: 20px;">
            <button class="layui-btn" id="audit-btn">审核记录</button>
            <button class="layui-btn  layui-btn-primary" onclick="window.history.go(-1)">返回</button>
        </div>

    </div>
    <#include "/base/main-footer.ftl">
</div>
<div  style="display: none;    margin: 0 30px;"  id="audit-log">
    <table class="layui-hide"  id="audit-tb"  >
    </table>

</div>

<script src="/static/lib/layui/layui.js"></script>
<script>
    layui.use(['layer', 'form', 'element', 'jquery','table'], function () {
        let layer = layui.layer, $ = layui.jquery,table=layui.table;
        $("#audit-btn").click(function (event) {
            table.render({
                elem: '#audit-tb',
                url:'/purchAudit/list?purchId=${p.purchApplyId!""}',
                cols: [[
                    {field:'id',width:300, title: '序号'}
                    ,{field:'operName', width:150, title: '操作人员'}
                    ,{field:'operDept', width:150, title: '单位'}
                    ,{field:'operAction', width:80, title: '操作'}
                    ,{field:'remark' , title: '审批意见'}
                    ,{field:'operTime',   title: '操作时间'}
                ]]
                ,parseData: function(res){
                    return {
                        "code": res.code,
                        "msg": res.msg,
                        "data": res.data
                    };
                }
            });
            layer.open({
                type: 1,
                content: $('#audit-log'),
                area:'1200px'
            });
        })
    });
</script>
</body>

</html>